﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace xConnected.Core.Model
{
    [Serializable]
    [DataContract]
    public class Language : PersistentEntity
    {
         public Language()
        {
            LanguageSkills = new List<LanguageSkill>();
            Translations = new List<Translation>();
            TitleTranslations = new List<Translation>();
            
        }

        [DataMember]
        public string ShortName { get; set; }

        [DataMember]
        public string Description { get; set; }

        [DataMember]
        public string Key { get; set; }

        [DataMember]
        public virtual IList<LanguageSkill> LanguageSkills { get; set; }

        [DataMember]
        public virtual IList<Translation> Translations { get; set; }

        [DataMember]
        public virtual IList<Translation> TitleTranslations { get; set; }

    }
}
